#!/bin/sh
 
if [ -z "$GRAILS_HOME" ]
then
    echo "I can't find your grails home.  Set env variable GRAILS_HOME";
    exit;
fi
 
if [ -z "$JAVA_HOME/bin/native2ascii" ]
then
    echo "Your JAVA_HOME seems to be set to a JRE, not an SDK!";
    echo "This might be a problem in some versions of grails.";
    echo "...starting anyway.";
fi
 
$GRAILS_HOME/bin/grails run-app
